package com.lxl;

import java.io.File;

public class Example4 {
    public static void main(String[] args) {
        File file = new File("F:/四大名著/水浒传");
        boolean mkdir = file.mkdir();
        System.out.println(mkdir);
        boolean mkdirs = file.mkdirs();
        System.out.println(mkdirs);
        boolean delete = file.delete();
        System.out.println(delete);
        File file1 = new File("F:/水浒传");
        System.out.println(file1.length());
    }
}
